﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Core.Web.Code.UI;
using Core.Web.Code.UI.Controls;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //控件路径通过Handlerfactory，截获请求获得
        AppSettingPage config = new AppSettingPage(Context);
        string TemplateFilePath = config.TeamplateFilePath;
        if (!string.IsNullOrEmpty(TemplateFilePath))
        {
            BaseControl control = this.LoadControl(TemplateFilePath) as BaseControl;
            this.PlaceHoderBody.Controls.Add(control);
        }
    }
}